package com.xc.dao;

import com.xc.pojo.Access;
import com.xc.pojo.FundsTradingAccount;
import com.xc.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 权限
 */
@Mapper
@Repository
public interface AccessMapper {

    /**
     * [新增]
     * @author lr
     * @date 2020/07/24
     **/
    Integer insertAccess(@Param("purview") String purview,@Param("roleId") Integer roleId);

    /**
     * [刪除]
     **/
    Integer deleteAccess(@Param("purviewval") String purviewval,@Param("roleId") Integer roleId);


    List<Access> selectByRoleId(@Param("roleId") Integer roleId);

    List<Map<String, String>> byRoleId(@Param("roleId") Integer roleId);

    List<Role> roleList();

}
